package com.ysx.student.zhangqingrong.com.ysx.day4;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author A
 */
public class Test9 {
    public static void main(String[] args) {



       for (int n=100;n<=999;n++){
           int a=n%10;
           int b=n/10%10;
           int c=n/100;
           if (a*a*a+b*b*b+c*c*c==n){
               System.out.println(n);
           }
       }



    }
}
